// Copyright (c) 2009-2011, chunquedong
//
// This file is part of ChunMap project
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
//
// History:
//   2011-10-30  Jed Young  Creation
//

using [java]com.vividsolutions.jts.geom::Geometry as JGeometry
using chunmapModel

internal class JtsTest : Test
{
  Void test()
  {
    g := Geometry("POINT (123 345)")
    jg := Jts().toJts(g)
    echo(jg)
    echo(Jts().toCm(jg))
  }

  Void test2()
  {
    g := Geometry("LineString (123 345, 345 456)")
    jg := Jts().toJts(g)
    echo(jg)
    echo(Jts().toCm(jg))
  }
}